#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
	float t;
	int n;
	scanf("%f %d", &t, &n);
	if (n >= 0)
	{
		double a = t / n;
		int b = 2 * n;
		printf("%.3lf", a);
		cout << endl;
		printf("%d", b);
	}
	return 0;

}